package c.e.a.b.e.c;

import java.util.Map.Entry;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class h5<K> implements Entry<K, Object> {
    public Entry<K, f5> a;

    public h5(Entry entry, i5 i5Var) {
        this.a = entry;
    }

    public final K getKey() {
        return this.a.getKey();
    }

    public final Object getValue() {
        if (((f5) this.a.getValue()) == null) {
            return null;
        }
        int i = f5.c;
        throw new NoSuchMethodError();
    }

    public final Object setValue(Object obj) {
        if (obj instanceof e6) {
            f5 f5Var = (f5) this.a.getValue();
            e6 e6Var = (e6) obj;
            e6 e6Var2 = f5Var.a;
            f5Var.b = null;
            f5Var.a = e6Var;
            return e6Var2;
        }
        throw new IllegalArgumentException("LazyField now only used for MessageSet, and the value of MessageSet must be an instance of MessageLite");
    }
}
